#ifndef _WX_DCMEMORY_H_BASE_
#define _WX_DCMEMORY_H_BASE_

#include "wx/bitmap.h"

class wxMemoryDCBase {
  public:
    wxMemoryDCBase() { }
    virtual ~wxMemoryDCBase() { }
    void SelectObject( wxBitmap& bmp ) {
      if( bmp.IsOk() ) {
        bmp.UnShare();
      }
      DoSelect( bmp );
    }
    virtual void SelectObjectAsSource( const wxBitmap& bmp ) {
      DoSelect( bmp );
    }

  protected:
    virtual void DoSelect( const wxBitmap& bmp ) = 0;
};

#include "wx/gtk/dcmemory.h"

#endif
